package week9;

public class EatableTest {
    public static void main(String[] args) {
    Eatable eatable[]= new Eatable[3];
    eatable[0] = new American();
    eatable[1] = new Chinese();
    eatable[2] = new Indian();
    for(int i=0;i<eatable.length;i++)
    {
        eatable[i].eat();
        }
    }
}
